home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
04
/
4
/
DISK0442.ZIP
/
SUMMARY.USE
< prev
next >
Wrap
Text File
|
1990-06-14
|
3KB
|
64 lines
SPA:WN is invoked by issuing 'SPAWN <fn>', where fn is the filename of a
file whose filetype is '.WAR', which contains the SPA:WN input file.
For example, to run the provided sample, issue 'SPAWN RODGERS'.
The format of the input to SPA:WN is:
*Warnier comments can appear anywhere; an "*" in column 1 denotes them.
([parameter and title records]
(root node value,repetition field,
(prefix value,child node value,infix value,) ...
prefix value,last child node value,;) ...
ENDWARNIERDIAGRAM) ...
The three dots after each level of nested parentheses indicate that
the input at that nested level may be indefinitely repeated in its context.
All input must be in hierarchical order; i.e. a node must appear as a
child before it can be repeated in its role as parent (except, of course
the root node for the whole diagram).
Repetition and infix fields may be <=12 characters long; the prefix field
may be <=PREWIDTH (default 3) characters long; the node value lengths are
limited by the use of LENLININ (default 80) character-long input records.
Parameters are COMMA, SEMI, PERCENT, QUOTE, VERTBAR, TOPBRACK, BOTBRACK,
DIAGCOLS, DIAGPAGEL, ECHOPAGEL, LINEPHYS, LENLINOUT, LENLININ,
NODEWIDTH, PREWIDTH, TOPMARGIN, PLIPUNCH, INDENT, SRCPUNCH, and TITLE.
The first few define character substitutions for the default punctuation
of the input stream. Later ones (from TOPBRACK through TOPMARGIN)
define output details, and the last four indicate whether to produce
target language code, whether to indent in it and what character to
indent with, whether to produce reordered SPAWN source, and what title
to use in the diagram headers.
Structured language contructs (like DO;...END; or IF...ELSE...ENDIF)
appear naturally as parents of trees of nested statements which
constitute their bodies. The position of appearance of the code of
the body vis-a-vis the characters of the control construct is indicated
by '%---%' (where the '%' may be its substitute), as in DO;%---%END; or
IF...ELSE%---%ENDIF.
The comma and semicolon (or their substitutes) delimit the auxiliary fields
and node values in the input stream. The '%' sign (or its substitute)
forces splitting of the node value in the output diagram; the '"' sign (or
its substitute) delimits disambiguating strings on parent nodes which would
otherwise be indistinguishable. The vertical bar, the top bracket and the
bottom bracket are used in constructing the brace of the output diagram.
Comments in the Warnier input stream are indicated by an '*' in column 1.
They will not appear in the Warnier diagram, but will appear in the *.ECH
file in the input order, and (with the asterisks stripped) collected at the
front of the *.PUN file. To make them target language comments, the
target language comment delimiters should appear in column 2 or later on the
Warnier comment records.
As many as four output files may be obtained from a SPA:WN run, <fn>.ECH,
<fn>.DIA, <fn>.SRC, <fn>.PUN, depending on the parameters and the
presence/absence of errors in the input stream, <fn>.WAR. The echo file
gives the SPA:WN diagnostics, the diagram file contains the Warnier diagram
(if the input was correct), the source file contains reordered SPA:WN input
(if SRCPUNCH Y was specificed and the input was correct), and the punch file
contains the target language source code (if PLIPUNCH Y was specified and
the input was correct).